package com.hxy.uniappdemo.controller;

import com.hxy.uniappdemo.bean.Purchase;
import com.hxy.uniappdemo.service.PurchaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class PurchaseController {
    @Autowired
    private PurchaseService PurchaseService;
    @RequestMapping("/PurchaseAll")
    public List<Purchase> SelectAll()
    {
        System.out.println("已经访问");
        return PurchaseService.SelectAll();
    }
}
